﻿#region Imports
using System;
#endregion

namespace CommonUtilities.Randomizer
{
    public static class TextGenerator
    {
        public static string Generate(int length)
        {
            Random rnd = new Random();
            string result = "";

            for (int i = 0; i < length; i++)
                result += (char)(rnd.Next(1, 26) + (rnd.Next(1, 100) % 2 == 0 ? 65 : 97) - 1);

            return result;
        }

    }
}
